import React from 'react'
import Images from "../Images";
import styles from './Header.css';
import _ from 'lodash';
class Header extends React.Component {
  constructor(props) {
    super(props)


  }

  render() {
    let title=_.get(this.props,'title')
    let ctrl=_.get(this.props,'ctrl')
    let demoImage=_.get(Images,'demoImage')
    let newsImage=_.get(Images,'newsImage')
    return (
      <div className={styles.header}>
        <div className={styles.ctrl}>{ctrl}11111111111111</div>
        <div className={styles.h_main}>
          <span className={styles.title}>{title}</span>
          <img className={styles.position_icon} src={demoImage}/>
        </div>
        <div className={styles.right}>
        <img className={styles.news_icon} src={newsImage}/>
        </div>
      </div>
    )
  }
}
export default Header
